/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import com.mojang.authlib.GameProfile;
/*    */ import com.mojang.authlib.properties.Property;
/*    */ import java.util.Collection;
/*    */ import net.minecraft.tileentity.TileEntity;
/*    */ import net.minecraft.tileentity.TileEntitySkull;
/*    */ 
/*    */ public class cx
/*    */ {
/*    */   public static ex v(TileEntity a) {
/* 12 */     if (a instanceof TileEntitySkull) {
/* 13 */       TileEntitySkull tileEntitySkull = (TileEntitySkull)a;
/* 14 */       return v(tileEntitySkull.func_152108_a());
/*    */     } 
/* 16 */     return null;
/*    */   }
/*    */   
/*    */   public static ex v(GameProfile a) {
/* 20 */     if (a != null) {
/* 21 */       String str = v(a);
/* 22 */       return ex.v(str);
/*    */     } 
/*    */ 
/*    */ 
/*    */     
/* 27 */     return null;
/*    */   }
/*    */   
/*    */   public static String v(TileEntity a) {
/* 31 */     if (a instanceof TileEntitySkull) {
/* 32 */       TileEntitySkull tileEntitySkull = (TileEntitySkull)a;
/* 33 */       return v(tileEntitySkull.func_152108_a());
/*    */     } 
/* 35 */     return null;
/*    */   }
/*    */   
/*    */   public static String v(GameProfile a) {
/* 39 */     if (a != null && a.getName() != null) {
/* 40 */       Collection<Property> collection = a.getProperties().get("model");
/* 41 */       if (collection != null && collection.size() > 0) {
/* 42 */         Property property = collection.stream().findFirst().get();
/* 43 */         return String.valueOf(property.getValue());
/*    */       } 
/*    */       
/* 46 */       return a.getName();
/*    */     } 
/* 48 */     return null;
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\cx.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */